package com.lk.spring.boot.sample.dao.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.lk.spring.boot.sample.bean.TestPOJO;
import com.lk.spring.boot.sample.dao.TestDao;

@Service
public class TestImpl {

	@Autowired 
	private TestDao testDao;
	
	public List<TestPOJO> queryAll(){
		return testDao.queryTestAll();
	}
	
	public TestPOJO getByKey(int id){
		return testDao.getByKey(id);
	}
}
